<!--  -->
<template>
  <div class="brand">
    <div class="brand_top">
      <img :src="brandData.brandData.list_pic_url" alt="">
      <a href="javascript:;">{{brandData.brandData.name}}</a>
    </div>
    <div class="brand_body">
      {{brandData.brandData.simple_desc}}
    </div>
  </div>
</template>

<script setup>
import {useRoute} from 'vue-router'
import {reactive ,onMounted} from 'vue'
import {getBrandDetail} from '@/api/api.ts'

let brandData = reactive({
  brandData: {}
})

onMounted(async () => {
  const res = await getBrandDetail(route.query.id)
  console.log(res);
  brandData.brandData = res.data.brand
  console.log(brandData.brandData);
  
})
const route = useRoute()
</script>

<style lang="scss" scoped>
  .brand_top {
    width: 100%;
    height: 420px;
    text-align: center;
    line-height: 420px;
    position: relative;
    /* background:  url("http://yanxuan.nosdn.127.net/2b7a07e25a3f3be886a7fb90ba975bb7.png") no-repeat; */
    /* background-size: 100% 100% ; */
  }
  img {
    width: 100%;
    height: 100%;
  }
  a {
    display: block;
    width: 100%;
    color: #fff;
    font-size: 40px;
    text-decoration: underline #fff;
    position: absolute;
    top: 0;
    left: 0;
    text-align: center;
  }
  .brand_body {
    /* height: 360px; */
    width: 100%;
    padding: 40px 20px;
    background-color: #fff;
    color: #666;
    font-size: 36px;
  }
</style>